import request from '@/utils/request'

// 查询客户列表
export function listAccount(query) {
  return request({
    url: '/payrecord/record/getAccountMessage',
    method: 'get',
    params: query
  })
}

// 查询客户详细
export function getAccount(F0301) {
  return request({
    url: '/AccountInformation/Account/' + F0301,
    method: 'get'
  })
}

// 新增客户
export function addAccount(data) {
  return request({
    url: '/AccountInformation/Account',
    method: 'post',
    data: data
  })
}

// 修改客户
export function updateAccount(data) {
  return request({
    url: '/AccountInformation/Account',
    method: 'put',
    data: data
  })
}

// 删除客户
export function delAccount(ids) {
  return request({
    url: `/t06/t06/` + ids,
    method: 'delete'
  })
}

// 分配token数
export function updateToken(data) {
  return request({
    url: '/t06/t06/sendTokens',
    method: 'post',
    data: data
  })
}

// 查询用户详细
export function getAccountMessage(F0301) {
  return request({
    url: `/t06/t06/${F0301}`,
    method: 'get',
  })
}

// 更新用户数据
export function updateUser(T06){
  return request({
    url: '/wx/updateById',
    method: 'post',
    data: T06
  })
}
